Optimal. Leaf size=135 \[ \frac {4 \sqrt {2} F_1\left (\frac {5}{2}+m;-\frac {3}{2},-n;\frac {7}{2}+m;\frac {1}{2} (1+\sin (e+f x)),-\frac {d (1+\sin (e+f x))}{c-d}\right ) \cos (e+f x) (a+a \sin (e+f x))^{2+m} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}}{a^2 f (5+2 m) \sqrt {1-\sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {2997, 145, 144,
143} \begin {gather*} \frac {4 \sqrt {2} \cos (e+f x) (a \sin (e+f x)+a)^{m+2} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n} F_1\left (m+\frac {5}{2};-\frac {3}{2},-n;m+\frac {7}{2};\frac {1}{2} (\sin (e+f x)+1),-\frac {d (\sin (e+f x)+1)}{c-d}\right )}{a^2 f (2 m+5) \sqrt {1-\sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 143
Rule 144
Rule 145
Rule 2997
Rubi steps
\begin {align*} \int \cos ^4(e+f x) (a+a \sin (e+f x))^m (c+d \sin (e+f x))^n \, dx &=\frac {\cos (e+f x) \text {Subst}\left (\int (a-a x)^{3/2} (a+a x)^{\frac {3}{2}+m} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{a^2 f \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=\frac {\left (2 \sqrt {2} \cos (e+f x)\right ) \text {Subst}\left (\int \left (\frac {1}{2}-\frac {x}{2}\right )^{3/2} (a+a x)^{\frac {3}{2}+m} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{a f \sqrt {\frac {a-a \sin (e+f x)}{a}} \sqrt {a+a \sin (e+f x)}}\\ &=\frac {\left (2 \sqrt {2} \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {a (c+d \sin (e+f x))}{a c-a d}\right )^{-n}\right ) \text {Subst}\left (\int \left (\frac {1}{2}-\frac {x}{2}\right )^{3/2} (a+a x)^{\frac {3}{2}+m} \left (\frac {a c}{a c-a d}+\frac {a d x}{a c-a d}\right )^n \, dx,x,\sin (e+f x)\right )}{a f \sqrt {\frac {a-a \sin (e+f x)}{a}} \sqrt {a+a \sin (e+f x)}}\\ &=\frac {4 \sqrt {2} F_1\left (\frac {5}{2}+m;-\frac {3}{2},-n;\frac {7}{2}+m;\frac {1}{2} (1+\sin (e+f x)),-\frac {d (1+\sin (e+f x))}{c-d}\right ) \cos (e+f x) (a+a \sin (e+f x))^{2+m} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}}{a^2 f (5+2 m) \sqrt {1-\sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.03, size = 160, normalized size = 1.19 \begin {gather*} -\frac {4 F_1\left (\frac {5}{2};-\frac {3}{2}-m,-n;\frac {7}{2};\cos ^2\left (\frac {1}{4} (2 e+\pi +2 f x)\right ),\frac {2 d \sin ^2\left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{c+d}\right ) \cos ^3(e+f x) (a (1+\sin (e+f x)))^m (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} \sin ^2\left (\frac {1}{4} (2 e-\pi +2 f x)\right ) \sin ^2\left (\frac {1}{4} (2 e+\pi +2 f x)\right )^{-\frac {3}{2}-m}}{5 f} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.26, size = 0, normalized size = 0.00 \[\int \left (\cos ^{4}\left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{m} \left (c +d \sin \left (f x +e \right )\right )^{n}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (e+f\,x\right )}^4\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________